TUTOR\Utils D

Total Complexity 1,024
Dependencies 21
Dependents 3
Total lines 9,927
Lines of code 6,070
Logical lines of code 2,456
Comment lines 2,770
Methods 274
Properties 0

Methods 274

Method Rating Maintainability Complexity Lines of code
get_qa_questions()
D
27
35 134
get_course_id_by()
C
31 24 123
get_earning_statements()
B
34 18 97
get_course_completed_percent()
B
34 18 95
get_instructors()
B
34 16 95
count_completed_contents_by_topic()
B
40 17 59
get_orders_by_user_id()
A
38 12 74
get_course_meta_data()
A
41 13 57
get_option()
A
48 13 32
get_reviews_by_user()
A
38 9 82
get_students_by_instructor()
A
36 7 102
do_enroll()
A
41 10 55
get_tutor_avatar()
A
47 11 32
has_video_in_single()
A
55 12 17
get_course_content_ids_by()
A
45 10 44
get_enrolled_courses_by_user()
A
47 10 35
get_video_info()
A
44 9 43
can_user_manage()
A
48 9 35
get_total_orders_by_user_id()
A
44 8 47
get_assignments_by_instructor()
A
41 7 62
languages()
A
29 1 140
get_enrolments()
A
42 6 64
add_option_after()
A
56 9 17
option_recursive()
A
56 9 16
not_found_text()
A
57 9 15
update_enrollments()
A
50 8 28
profile_url()
A
58 9 13
prepare_free_addons_data()
A
51 8 25
get_earning_sum()
A
43 6 54
get_course_first_lesson()
A
47 7 38
course_with_materials()
A
52 8 22
get_random_questions_by_quiz()
A
48 7 36
get_total_instructors()
A
44 6 50
get_total_enrolments()
A
44 6 50
get_reviews_by_instructor()
A
38 4 79
cancel_course_enrol()
A
44 6 48
sanitize_recursively()
A
56 8 17
get_instructors_by_course()
A
41 4 76
handle_flash_message()
S
53 7 28
star_rating_generator_v2()
S
50 7 27
get_course_rating()
S
41 4 70
get_course_enrolled_ids_by_order_id()
S
47 6 38
get_raw_course_price()
S
53 7 22
get_course_previous_content_id()
S
54 7 21
get_ip()
S
57 7 19
get_course_price()
S
55 7 18
is_instructor_of_this_course()
S
51 6 29
tutor_dashboard_nav_ui_items()
S
59 7 14
get_course_content_list()
S
51 6 27
get_course_prev_next_contents_by_id()
S
51 6 27
get_course_builder_screen()
S
60 7 12
unanswered_question_count()
S
43 4 54
hex2rgb()
S
52 6 23
second_to_formated_time()
S
55 6 20
quiz_time_duration_in_seconds()
S
55 6 20
get_course_reviews()
S
49 5 34
count_enrolled_users_by_course()
S
49 5 34
let_to_num()
S
57 6 18
display_name()
S
58 6 15
get_table_columns_from_context()
S
57 6 15
course_content_time_format()
S
57 6 15
is_course_added_to_cart()
S
58 6 15
complete_course_enroll()
S
58 6 15
get_attachments()
S
57 6 15
star_rating_generator_course()
S
51 5 27
get_attachment_data()
S
46 4 41
get_course_id_by_subcontent()
S
52 5 24
get_not_translated_pages()
S
53 5 22
get_total_students()
S
48 4 36
get_earning_chart()
S
43 3 50
star_rating_generator()
S
55 5 20
get_course_duration()
S
54 5 20
is_completed_course()
S
50 4 33
get_completed_lesson_count_by_course()
S
49 4 31
avalue_dot()
S
58 5 16
sanitize_array()
S
59 5 15
get_human_readable_time()
S
57 5 15
is_tutor_frontend_dashboard()
S
59 5 14
has_enrolled_content_access()
S
60 5 13
get_students()
S
47 3 43
delete_course_progress()
S
49 4 28
get_question_types()
S
43 2 58
currency_symbol()
S
61 5 12
user_profile_completion()
S
51 4 27
get_quiz_option()
S
61 5 12
seconds_to_time()
S
51 4 26
get_svg_icon()
S
61 5 11
get_unique_slug()
S
53 4 23
playtime_array()
S
54 4 22
tutor_custom_header()
S
54 4 21
is_enrolled()
S
49 3 36
get_video_sources()
S
49 3 35
can_delete_qa()
S
56 4 20
get_next_course_content_order_id()
S
56 4 19
tutor_pages()
S
49 3 33
get_pages()
S
56 4 18
translate_dynamic_text()
S
57 4 17
get_rating_value()
S
58 4 16
get_user_name()
S
59 4 15
checking_nonce()
S
61 5 10
has_user_role()
S
65 5 8
tutor_custom_footer()
S
58 4 14
redirect_to()
S
58 4 14
has_any_enrolled()
S
53 3 28
most_rated_courses()
S
53 3 27
get_assignment_option()
S
61 4 12
get_assignments_by_course()
S
48 2 41
get_current_page_slug()
S
62 4 11
get_attached_quiz()
S
55 3 24
get_earning_chart_yearly()
S
47 2 37
get_course_by_enrol_id()
S
56 3 21
get_next_topic_order_id()
S
55 3 21
get_tutor_user()
S
50 2 35
course_levels()
S
56 3 19
get_instructor_ratings()
S
50 2 34
assign_child_count()
S
56 3 19
instructor_status()
S
56 3 19
get_db_version()
S
57 3 18
get_course_rating_by_user()
S
50 2 33
get_all_quiz_attempts_by_user()
S
58 3 18
most_popular_courses()
S
51 2 32
course_progress_status_context()
S
57 3 17
get_enrolment_by_enrol_id()
S
53 2 30
is_tutor_dashboard()
S
67 4 7
get_enrolled_data()
S
53 2 30
is_instructor()
S
64 4 9
playtime_string()
S
63 4 8
get_questions_by_quiz()
S
59 3 15
can_user_retake_course()
S
63 4 10
get_option_default()
S
64 4 9
seconds_to_time_context()
S
63 4 8
instructor_menus()
S
47 1 43
__call()
S
61 3 13
get_rating_by_id()
S
52 2 27
get_qa_answer_by_answer_id()
S
54 2 27
has_lesson_edit_access()
S
61 3 12
get_assignment_deadline_date()
S
60 3 12
get_course_id_by_lesson()
S
63 3 11
is_assignment_submitted()
S
53 2 26
get_youtube_video_id()
S
63 3 11
is_course_purchasable()
S
63 3 11
get_course_contents_by_id()
S
54 2 25
is_started_quiz()
S
54 2 24
get_students_data_by_course_id()
S
55 2 23
clean_html_content()
S
48 1 38
change_earning_status()
S
54 2 22
count_completed_assignment()
S
56 2 22
default_menus()
S
49 1 36
is_wishlisted()
S
56 2 21
max_questions_for_take_quiz()
S
57 2 18
get_active_courses_by_user()
S
56 2 18
get_single_comment_user_post_id()
S
58 2 17
get_course_categories()
S
58 2 17
has_attempted_quiz()
S
58 2 17
get_courses_by_user()
S
58 2 16
get_attempt()
S
60 2 16
get_course_tags()
S
59 2 16
array_only()
S
70 3 6
get_tutor_dashboard_page_permalink()
S
65 3 9
input_old()
S
65 3 10
update_video()
S
70 3 6
get_post_id()
S
67 3 9
has_pmpro()
S
73 3 4
get_addon_config()
S
64 3 10
tutor_price()
S
65 3 9
has_user_course_content_access()
S
64 3 9
get_cover_photo_url()
S
64 3 9
count()
S
71 3 6
tutor_user_social_icons()
S
51 1 30
course_archive_page_url()
S
65 3 9
error_message()
S
61 2 13
get_courses_by_student_instructor_id()
S
54 1 27
get_wishlist()
S
52 1 27
add_instructor_role()
S
61 2 12
get_video_stream_url()
S
62 2 11
allowed_avatar_tags()
S
54 1 26
get_package_object()
S
62 2 11
get_current_url()
S
63 2 11
remove_instructor_role()
S
62 2 11
text_editor_config()
S
53 1 25
get_announcements()
S
55 1 25
get_total_students_by_instructor()
S
55 1 24
tutor_dashboard_pages()
S
53 1 24
course_nav_items()
S
54 1 24
get_qa_answer_by_question()
S
56 1 24
tutor_social_share_icons()
S
54 1 23
get_completed_courses_ids_by_user()
S
55 1 23
get_completed_assignment()
S
55 1 23
get_submitted_assignment_count()
S
56 1 22
is_assignment_submitting()
S
56 1 21
get_students_all_data_by_course_id()
S
57 1 20
get_random_question_by_quiz()
S
57 1 19
get_contents_by_topic()
S
58 1 19
get_completed_quiz()
S
58 1 19
get_enrolled_courses_ids_by_user()
S
58 1 19
tutor_get_screen_ids()
S
58 1 18
get_assignment_submit_info()
S
58 1 18
count_reviews_wrote_by_user()
S
60 1 16
get_edd_products()
S
60 1 16
product_belongs_with_course()
S
60 1 16
get_wc_products_db()
S
60 1 16
get_local_time_from_unix()
S
73 2 4
get_readable_filesize()
S
78 2 3
convert_date_into_wp_timezone()
S
70 2 5
is_plugin_active()
S
69 2 6
is_addon_enabled()
S
70 2 6
get_toc_page_link()
S
66 2 8
is_course_fully_booked()
S
71 2 5
get_video()
S
67 2 8
is_completed_lesson()
S
65 2 9
asterisks_center_text()
S
67 2 7
is_html5_video()
S
66 2 8
asterisks_email()
S
66 2 8
quiz_update_attempt_info()
S
64 2 8
get_remote_plugin_info()
S
67 2 7
can_user_edit_course()
S
77 2 3
announcement_content()
S
64 2 10
course_edit_link()
S
66 2 8
str_split()
S
65 2 9
is_script_debug()
S
79 2 3
get_assignments()
S
61 1 15
get_total_assignments()
S
61 1 15
get_course_id_by_content()
S
78 2 3
total_questions_for_student_by_quiz()
S
59 1 15
referer_field()
S
68 2 7
reset_password()
S
64 2 8
is_tutor_order()
S
65 2 9
instructor_register_url()
S
68 2 7
student_register_url()
S
68 2 7
course_enrol_status_change()
S
65 2 9
get_user_id()
S
72 2 6
get_assigned_courses_ids_by_instructors()
S
60 1 15
get_user_by_login()
S
61 1 14
export_purchased_course_data()
S
61 1 14
get_enrolled_statuses()
S
62 1 14
tutor_dashboard_permalinks()
S
60 1 14
get_course_contents_by_topic()
S
60 1 13
allowed_icon_tags()
S
62 1 13
get_profile_bio_editor_config()
S
63 1 12
get_topics()
S
62 1 12
get_course_categories_term()
S
63 1 12
report_frequencies()
S
62 1 11
get_total_question()
S
63 1 11
is_assoc()
S
77 1 3
get_course_product_id()
S
72 1 5
update_option()
S
72 1 5
get_student_emails_by_course_id()
S
79 1 3
has_edd()
S
80 1 3
array_get()
S
79 1 3
tutor_dashboard_url()
S
71 1 5
dashboard_page_id()
S
73 1 5
quiz_attempt_info()
S
80 1 3
has_wc()
S
80 1 3
get_total_review()
S
67 1 8
get_total_enrolled_course()
S
66 1 9
get_total_course()
S
65 1 9
sub_days_with_today()
S
72 1 5
get_gradebooks()
S
72 1 5
help_tip()
S
80 1 3
referer()
S
75 1 4
is_course_enrolled_by_lesson()
S
70 1 6
price_type()
S
72 1 5
get_course_settings()
S
69 1 6
tutor_empty_state()
S
66 1 10
is_course_booked()
S
70 1 6
order_status_context()
S
71 1 5
get_earnings_completed_statuses()
S
67 1 10
print_view()
S
74 1 5
get_item_content_drip_settings()
S
69 1 6
has_bp()
S
69 1 6
get_qa_question()
S
78 1 3
has_wcs()
S
76 1 4
add_days_with_today()
S
72 1 5
get_optimized_duration()
S
80 1 3